//
//  ViewController.h
//  SWSerialPortTool
//
//  Created by mt-007 on 2021/4/10.
//

#import <Cocoa/Cocoa.h>
#import "src/SWImportModules.h"

@interface ViewController : NSViewController {
    // int, file pointer.
    int fd;
    // A FLAG to decide ControllerView status
    int FLAG;
    SWSerial *serial;
}

// console and send TextView
@property (weak) IBOutlet NSScrollView *_consoleScrollView;
@property (unsafe_unretained) IBOutlet NSTextView *_consoleTextView;

// Input text filed.
@property (weak) IBOutlet NSTextField *_sendLabel;


// base setting information combo box
@property (weak) IBOutlet NSComboBox *baudRate_comboBox;
@property (weak) IBOutlet NSComboBox *dataBit_comboBox;
@property (weak) IBOutlet NSComboBox *checkParity_comboBox;
@property (weak) IBOutlet NSComboBox *stopBit_comboBox;

// choose device
@property (weak) IBOutlet NSComboBox *deviceChoose_comboBox;

// The Button
@property (weak) IBOutlet NSButtonCell *TestButton;
@property (weak) IBOutlet NSButton *connectButton;
@property (weak) IBOutlet NSButton *disconnectButton;



@end

